package com.liziba.springcloud.example.springcloudorderservice;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther LiZiBa
 * @date 2020/8/3 20:01
 * @description:
 **/

@RestController
public class OrderService {

    @Value("${server.port}")
    private int port;

    @GetMapping("/orders")
    public String getAllOrder(){

        System.out.println("port:" + port);

        return "return all orders";
    }
}
